package com.wiscamp.ninechapters.problems.infrastructure.mappers.tasks;

import com.wiscamp.ninechapters.problems.infrastructure.po.tasks.ExaminationCodePO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface ExaminationCodeMapper extends JpaRepository<ExaminationCodePO, Long>, JpaSpecificationExecutor<ExaminationCodePO> {

    @Query(value = "select e from ExaminationCodePO e where e.examinationCode = :code")
    ExaminationCodePO findExaminationCode(String code);
}